import fetch from 'common/src/utils/fetch'

/**
 * 删除
 */
function delete_(idList) {
    return fetch({
        url: '/api/electionservice/elcMicroRound',
        method: 'delete',
        data: idList
    });
}

/**
 * 修改
 */
function update(template) {
    return fetch({
        url: '/api/electionservice/elcMicroRound',
        method: 'post',
        data: template
    });
}

/**
 * 新增
 */
function add(template) {
    return fetch({
        url: '/api/electionservice/elcMicroRound',
        method: 'put',
        data: template
    });
}

/**
 * 根据id获取微专业权限
 */
function get(id) {
    return fetch({
        url: `/api/electionservice/elcMicroRound/${id}`,
        method: 'get'
    });
}
export default {
    "delete_": delete_,
    "update": update,
    "add": add,
    "get": get,
}